package com.gxy.learn.upload.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
import org.springframework.stereotype.Component;

/**
 * Description:
 * author: Gaoxueyong
 * Create at: 2023/2/8 12:54
 */

@Configuration
@ConfigurationProperties(prefix = "task")
public class TaskConfig {
    private String cron;
    /** 服务器相关参数*/
    private String ip;

    private int port;

    private String name;

    private String password;

    /** 上传前文件所在文件夹路径*/
    private String localPath;
    /** 上传后的文件路径*/
    private String targetPath;
//    渠道，环境，版本
    private String iosChannel;
    private String iosEnv;
    private String iosVersion;

    private String androidChannel;
    private String androidEnv;
    private String androidVersion;

    public TaskConfig() {
    }

    public TaskConfig(String ip, int port, String name, String password, String localPath, String targetPath, String iosChannel, String iosEnv, String iosVersion, String androidChannel, String androidEnv, String androidVersion) {
        this.ip = ip;
        this.port = port;
        this.name = name;
        this.password = password;
        this.localPath = localPath;
        this.targetPath = targetPath;
        this.iosChannel = iosChannel;
        this.iosEnv = iosEnv;
        this.iosVersion = iosVersion;
        this.androidChannel = androidChannel;
        this.androidEnv = androidEnv;
        this.androidVersion = androidVersion;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getLocalPath() {
        return localPath;
    }

    public void setLocalPath(String localPath) {
        this.localPath = localPath;
    }

    public String getTargetPath() {
        return targetPath;
    }

    public void setTargetPath(String targetPath) {
        this.targetPath = targetPath;
    }

    public String getIosChannel() {
        return iosChannel;
    }

    public void setIosChannel(String iosChannel) {
        this.iosChannel = iosChannel;
    }

    public String getIosEnv() {
        return iosEnv;
    }

    public void setIosEnv(String iosEnv) {
        this.iosEnv = iosEnv;
    }

    public String getIosVersion() {
        return iosVersion;
    }

    public void setIosVersion(String iosVersion) {
        this.iosVersion = iosVersion;
    }

    public String getAndroidChannel() {
        return androidChannel;
    }

    public void setAndroidChannel(String androidChannel) {
        this.androidChannel = androidChannel;
    }

    public String getAndroidEnv() {
        return androidEnv;
    }

    public void setAndroidEnv(String androidEnv) {
        this.androidEnv = androidEnv;
    }

    public String getAndroidVersion() {
        return androidVersion;
    }

    public void setAndroidVersion(String androidVersion) {
        this.androidVersion = androidVersion;
    }
}
